﻿using Project.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Project.IService
{
    /// <summary>
    /// 用户设计工具关系
    /// </summary>
    public interface IUserDesignToolService
    {

        /// <summary>
        /// 根据用户id获取设计工具
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        IQueryable<DesignTool> GetDesignTools(Guid userId);

        /// <summary>
        /// 设置用户设计工具
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="designToolIds"></param>
        /// <returns></returns>
        Task<int> SetDesignToolsAsync(Guid userId, List<Guid> designToolIds);
    }
}
